This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
1) Does the code actually do what it's supposed to when it runs the first time? yes
2) Are you seeing any errors (other than out of memory)? no
3) Are all of your .jar files included in the agent? we've tried it both ways - in the agent, and on the file system
//load object with data from doc, if not new
body = (RichTextItem)doc.getFirstItem("fieldname");
String nomText = body.getText();
System.out.println(nomText);
if (encodedText != null) {
body.remove(); // might have text to be replaced, so remove and recreate it
body = doc.createRichTextItem( "fieldname");
body.appendText(encodedText);
doc.save();
System.out.println("Saved.");
doc.recycle();
}
} catch (Exception e) {
e.printStackTrace();
}
}